@echo off
cd /d %~dp0
REM dotnet pack .\src\example\example.csproj -o c:\published\example -c Release /p:Version=1.2.3
set rep="%appdata%\..\..\.nuget\packages\IoTSharp.Data.Taos"
if exist %rep% (rd /S/Q %rep%)

set version=1.0.1.7

dotnet publish -f net45 -v q --nologo -c Release -p:Version=%version% -p:PS_BUILD=PS_BUILD
dotnet publish -f netcoreapp3.1 -v q --nologo -c Release -p:Version=%version% -p:PS_BUILD=PS_BUILD


nuget pack IoTSharp.Data.Taos.nuspec -Version %version% -OutputDirectory ..\lib

::pause